/**
 *
 */
package com.zhuoyue.elmt.dao;

import com.eit.eitsite.common.persistence.CrudDao;
import com.eit.eitsite.common.persistence.annotation.MyBatisDao;
import com.eit.eitsite.modules.sys.entity.Dict;
import com.zhuoyue.elmt.entity.MaintenanceRecordItem;
import com.zhuoyue.elmt.entity.MaintenanceRecordSz;

import java.util.HashMap;
import java.util.List;

/**
 * 电梯维保记录DAO接口
 * @author chenhao
 * @version 2016-09-07
 */
@MyBatisDao
public interface MaintenanceRecordSzDao extends CrudDao<MaintenanceRecordSz> {
    public MaintenanceRecordSz getMaintenanceRecordByDeviceCode(HashMap params);
    public void updateMaintenanceRecordByBaseInfo(MaintenanceRecordSz model);
    public void updateMaintenanceRecordByMtInfo(MaintenanceRecordSz model);

    public List<Dict> findSysDictList(HashMap params);
    public List<HashMap> findMaintenanceRecordItem(HashMap params);
    public void insertMaintenanceRecordItem(MaintenanceRecordItem model);
    public void deleteMaintenanceRecordItemByRecordId(String recordId);

    public List<HashMap> getPrevMaintenanceRecordSz(MaintenanceRecordSz record);

    public void updateOverdueType(MaintenanceRecordSz model);
    public List<HashMap> statMainCount(HashMap params);

    public List<MaintenanceRecordSz> findMainContractMtNum(MaintenanceRecordSz maintenanceRecordSz);


}